import { defineConfig } from 'unocss'

export default defineConfig({
  // ...UnoCSS options
  rules: [
    [/^p-([\.\d]+)-im$/, ([_, num]) => ({ padding: `${num}px !important` })],
    [/^border-([\.\d]+)-im$/, ([_, num]) => ({ border: `${num}px !important` })],
    [/^h-([\.\d]+)-im$/, ([_, num]) => ({ height: `${num}px !important` })],
    [/^fs-([\.\d]+)$/, ([_, num]) => ({ 'font-size': `${num}px` })],
    [/^bgc-([\.\w]+)$/, ([_, color]) => ({ 'background-color': `#${color}` })],
    [/^fc-([\.\w]+)$/, ([_, color]) => ({ 'color': `#${color}` })],
  ],
})
